package com.woniuxy.user.mapper;

import com.woniuxy.commons.entity.UserPo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @Author:阳佳
 * @Date: 2020/7/24 12:18
 * @Description:
 * @PACKAGE_NAME:com.woniuxy.user.mapper
 */
@Repository
public interface UserLoginMapper {
    @Insert("insert into user values(default,#{account},#{password},#{uname})")
    public int insertUser(UserPo userPo);
    @Select("select *  from user where account=#{account}")
    public UserPo findUserPOByAccount(String account);
}
